<?php
if(!defined('GbIncl')){
	?>
	<meta http-equiv="refresh" content="0;url=block.php" />
    <?php
	}else{
	?>
<!-- AWAL KODING -->

<!--local-->
<a href="../spm-itats">
<?php
$query="select GAMBAR_BS from BERITA_SPM order by ID_BS asc limit 1";
$data=mysql_query($query);
$data=mysql_fetch_array($data);

$content=$data[0];
$type='image/jpeg';
//header("Content-type: $type");   // parsing ke mime tipe

echo '<img src="data:image/jpeg;base64,'.base64_encode($content).'" alt="photo"width="100%" ><br>';
//$content; 
?>
</a>

<!--online--
<a href="http://spm-itats.url.ph"><img src="img/logo.gif"/></a>";
<!---->

<!-- AKHIR KODING -->
<?php }?>

<?php
/*

*/
?>